﻿// Licensed under the MIT License (the "License").
// You may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//     https://github.com/SpringHgui/OpenTask/blob/master/LICENSE
// Copyright (c) 2024 Gui.H

namespace OpenTask.Application.Base
{
    public class BaseResponse<T>
    {
        public required int Code { get; set; }

        public bool Success => Code == 200;

        public T? Result { get; set; }

        public required string Message { get; set; }

        public required string TraceId { get; set; } = null!;
    }
}